package com.meisupic.copyright.domain.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;

/**
 * creation wuxun
 * @version V1.0
 * @Description: 版权登记审批流程记录
 * @date 2018/1/13 22:11
 */
@Data
@Entity
@Table(name = "copyright_works_audit_record")
public class CopyrightWorksAuditRecord {

  @Id
  @GeneratedValue
  private Long id;

  @Column(name = "copyright_works_id", length = 20, nullable = false)
  private Long copyrightWorksId;

  @Column(name = "auditor", length = 50, nullable = false)
  private String auditor;

  /**
   * 审核结果
   */
  @Column(name = "process_result", length = 1, nullable = false)
  private Integer processResult;

  /**
   * 审核意见.
   */
  @Column(name = "process_comment")
  private String processComment;

  @Column(name = "create_time")
  @CreationTimestamp
  private Date createTime;

  public CopyrightWorksAuditRecord() {
  }

  public CopyrightWorksAuditRecord(Long copyrightWorksId, String auditor,
      Integer processResult, String processComment) {
    this.copyrightWorksId = copyrightWorksId;
    this.auditor = auditor;
    this.processResult = processResult;
    this.processComment = processComment;
  }
}
